package cn.com.miaoto.base.common;

import lombok.Data;

/**
 * Created by guo.chen on 2018/9/15.
 */
@Data
public class ReturnMsg {
    private boolean status;
    private String code;
    private String message;
    private Object data;

    public ReturnMsg(){

    }

    public ReturnMsg(boolean status){
        this.status = status;
    }

    public ReturnMsg(boolean status,String message){
        this.status = status;
        this.message = message;
    }

    public ReturnMsg(boolean status,Object data){
        this.status = status;
        this.data = data;
    }

    public ReturnMsg(boolean status,String message, Object data){
        this.status = status;
        this.message = message;
        this.data = data;
    }

    public ReturnMsg(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
